import request from '@/utils/request'

export function getWaybillList(query) {
  return request({
    url: '/logistics/waybill/getList',
    method: 'post',
    data: query
  })
}

export function getWaybillDetail(id) {
  return request({
    url: '/logistics/waybill/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveWaybill(id) {
  return request({
    url: '/logistics/waybill/save',
    method: 'post',
    data: id
  })
}

export function removeWaybillByID(id) {
  return request({
    url: '/logistics/waybill/delete',
    method: 'post',
    data: id
  })
}

export function changeWaybillStatusByID(id) {
  return request({
    url: '/logistics/waybill/change-status',
    method: 'post',
    data: id
  })
}

export function copyByWaybillID(waybillID){
  return request({
    url: '/logistics/waybill/copy',
    method: 'post',
    data: {
      waybillID:waybillID
    }
  })
}

